#!/usr/bin/env python

def enum(*sequential, **named):
	enums = dict(zip(sequential, range(len(sequential))), **named)
	return type('Enum', (), enums)

class decor(object):
	def __init__(self, f):
		print 'inside decor.__init__()'
		f()	# prove that function definition has completed
	
	def __call__(self):
		print 'inside decor.__call__()'

@decor
def funk():
	print 'inside a funk'

if __name__ == '__main__':
	funk()
